package com.tolls;

public class A {


    public String show(A obj){

       return ("A and A");
    }

    public String show(C obj){

        return  ("A and C");
    }


    public static  <E> void  genericity(E e ){

        System.out.println(e);
    }

    public void eat(){

        System.out.println("吃饭");
    }

    static <T> T get(T t){

        return  t;
    }


    public static void main(String[] args) {
//        A a1 = new A();
////        A a2 = new B();
////        B b = new B();
////        C c = new C();
////
////        System.out.println("1--"+a1.show(c));
////        System.out.println("2--"+a2.show(c));
////        System.out.println("3--"+a2.show(b));

//        Animal a = new Animal();
//        A.genericity(a);
//
//        A b = new A();
//        A.genericity(b);

    }
}
